package com.clinic.casee.controller;

import com.clinic.api.casee.CaseControllerApi;
import com.clinic.framework.common.request.CaseQueryRequest;
import com.clinic.framework.common.response.QueryList;
import com.clinic.framework.common.response.ResponseResult;
import com.clinic.framework.common.response.ResponseValue;
import com.clinic.framework.domain.base.Case;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/case")
public class CaseController implements CaseControllerApi {
    @PostMapping("/add")
    public ResponseResult addCase(@RequestBody Case Case) {
        return null;
    }

    @PostMapping("/edit")
    public ResponseResult editCase(@RequestBody Case Case) {
        return null;
    }

    @DeleteMapping("/del/{id}")
    public ResponseResult delCase(@PathVariable("id") String id) {
        return null;
    }

    @GetMapping("/list/{page}/{size}")
    public QueryList<Case> findCaseList(@PathVariable("page") String page, @PathVariable("size") String size, CaseQueryRequest dqr) {
        return null;
    }

    @GetMapping("/get/{id}")
    public ResponseValue<Case> findCaseById(@PathVariable("id") String id) {
        return null;
    }
}
